import { getRequest, postRequest, putRequest, postBodyRequest, getNoAuthRequest, postNoAuthRequest } from '@/libs/axios';


// region TODO 退出登录
export const logOutApi = param => postRequest('/oauth2/logout', param);
// 获取临时目录
export const getTempUploadDir = params => {
    return $http.request({
        url: '/cm_ViewCommonActiongetTempUploadDir.do',
        method: 'post',
        data: params
    });
};
// 文件上传
export const fileupload = params => {
    return $http.request({
        url: `/fs/fileupload?author=${params.author}&uploadPath=${params.uploadPath}`,
        method: 'post',
        data: params
    });
};


// region TODO 获取所有地区代码数据
// export const areaDataApi = param => postRequest('/region/area', param);
export const areaDataApi = param => postRequest('/areaCode/getAreaData', param);